package util.ourIterator;

/**
 * Created by mahanlei on 2016/11/24.
 */
public class Test {
    public static  void main(String []args){
        List list=new ConcreteAggregate();
        list.add("a");
        list.add("b");
        list.add("c");
        list.add("d");
        Iterator iterator=list.iterator();
        while(iterator.hasNext()){
            System.out.println(iterator.next());
        }


    }
}
